package com.dgshanger.sanhxiaofeisc.mvp.contract;

import com.dgshanger.sanhxiaofeisc.entity.NearbyItemEntity;
import com.dgshanger.sanhxiaofeisc.entity.SearchHotEntity;
import com.xx.baseuilibrary.mvp.BaseMvpView;
import com.xx.baseutilslibrary.network.rx.XxBaseHttpObserver;

import java.util.List;

/**
 * Created by JacobHHH on 2018/5/4.
 */

public interface SearchContract {

    interface View extends BaseMvpView{

        void setSearchResult(List<NearbyItemEntity> data);

        void setHotData(List<SearchHotEntity> data);
    }

    interface Presenter {

        void loadHotData();

        void search(String location_name,String user_longitude,String user_latitude,String shop_name);
    }

    interface Model{

        void loadHotData(XxBaseHttpObserver<List<SearchHotEntity>> httpObserver);

        void search(String location_name,String user_longitude,String user_latitude,String shop_name,
                    XxBaseHttpObserver<List<NearbyItemEntity>> httpObserver);


    }
}
